/*-------------------------------------------------------- 
* Module Name : OLInfoPanelSurface
* Version : 1.0
* 
* Software Name : Qt App Template
* Version : 1.0
*
* Copyright � 2010 � 2011 France T�l�com
* This software is distributed under the LGPL v2.1 license,
* the text of which is available at http://www.gnu.org/licenses/lgpl-2.1.html
* or see the "LICENSE.txt" file for more details.
*
*--------------------------------------------------------
* File Name   : OLInfoPanelSurface.h
*
* Created     : 07 June 2011
* Author(s)   : Omer Saleem
*
* Description :
* The modal background surface for the info panel (OLInfoPanel)
* to be rendered on.
*
*--------------------------------------------------------
* 1.0 - First open source release
*
*/

#ifndef OLINFOPANELSURFACE_H
#define OLINFOPANELSURFACE_H

#include <QWidget>
#include <QAbstractAnimation>

#include "OLModalBackground.h"

class QParallelAnimationGroup;
class OLInfoPanel;

class OLInfoPanelSurface : public OLModalBackground
{
    Q_OBJECT

public:
    explicit OLInfoPanelSurface(QWidget *parent = 0);

public slots:
    void showInfoPanel();
    void hideInfoPanel();

private slots:
    void handleAnimFinished();
    void handleAppSize();

signals:
    void portraitSwitch();
    void landscapeSwitch();

protected:
    void resizeEvent(QResizeEvent * event);

private:
    OLInfoPanel* m_infoPanel;
    QParallelAnimationGroup* m_animGroup;
};

#endif // OLINFOPANELSURFACE_H
